
		function fillingFormData(id_field, filling_value) {
            document.getElementById(id_field).value = filling_value
        }
        
        
        function insertDivText(div) {
            document.getElementById(div).innerHTML = this.text
        }
        
        function addingText(text_one, text_two) {
            this.text = text_one + text_two
        }
        
        function TextObject() {
	        this.text = ' '
            
	        this.insertDivText = insertDivText
	        this.addingText = addingText
        }
        
        
        function rememberFieldData(id_field, name_field) {
            this.id_field = id_field
            this.name_field = name_field
        }
        
        function changeCellStyle(event) {
	        event = event || window.event
	        var clicked_elem = event.target || event.srcElement
	        if(this.is_clicked==0) {
	            if(clicked_elem.className=="TableCell")
	                clicked_elem.className = "TableSelectCell"
	            this.is_clicked = 1
	        }
	        else {
	            this.last_clicked.className = "TableCell"
	            if(clicked_elem.className=="TableCell")
	                clicked_elem.className = "TableSelectCell"
	        }
	        this.last_clicked = clicked_elem
        }
        
        function SelectCell(last_clicked) {
	        this.is_clicked = 0
	        this.id_field = -1
	        this.name_field = '...'
	        this.last_clicked = last_clicked
            
	        this.rememberFieldData = rememberFieldData
	        this.changeCellStyle = changeCellStyle
        }
        
        
